from django.conf.urls.defaults import *
from hocabul.views import *
import settings

urlpatterns = patterns('',
    # Main web portal entrance.
    (r'^$', hocabul_main_page),
    (r'^profile/(\d*)$', view_profile),
    (r'^profile/(\d*)/delete/(\d*)/', delete_course),
    (r'^profile/(\d*)/add/course/(\d*)/', add_course),
    (r'^courses/$', view_courses),
    (r'^courses/(\d*)$', view_course),
    (r'^department/(\d*)/courses/$', get_courses),
    (r'^lesson/add', add_lesson),
    (r'^swingtime/', include('swingtime.urls')),
)    
urlpatterns += patterns('django.views.static',
        (r'^static/(?P<path>.*)$', 
        'serve', {
        'document_root': settings.STATIC_DOC_ROOT,
        'show_indexes': True })
)

